﻿<controls:ChildWindow x:Class="Candy.BlastSecondaryBaitsWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="300" 
           Title="BlastSecondaryBaitsWindow" Style="{StaticResource ChildWindowStyleChromeless}">
    <Border Margin="2" Background="{StaticResource ControlBackgroundDark}" BorderBrush="{StaticResource Accent}" BorderThickness="1" >
        <Grid x:Name="LayoutRoot">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="40*"/>
                <RowDefinition Height="103*"/>
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" HorizontalAlignment="Right" Margin="0,12,8,10" Grid.Row="6" />
            <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" HorizontalAlignment="Right" Margin="0,12,90,10" Grid.Row="6" Command="{Binding JobManager.CreateJobs, Mode=OneWay, Source={StaticResource Locator}}" CommandParameter="{Binding Jobs}" />
            <TextBlock TextWrapping="Wrap" Text="BLAST for secondary baits" FontSize="{StaticResource HeaderFontSize}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="8,1,0,10"/>
            <TextBlock HorizontalAlignment="Left" Margin="8,4,0,0" Grid.Row="1" TextWrapping="Wrap" Text="Database" VerticalAlignment="Top"/>
            <ComboBox ItemsSource="{Binding Databases}" SelectedItem="{Binding SelectedDatabase, Mode=TwoWay}" Margin="8,4" Grid.Row="2" VerticalAlignment="Center" >
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding DisplayName}"/>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
            <TextBlock HorizontalAlignment="Left" Margin="8,4,0,0" Grid.Row="3" TextWrapping="NoWrap" Text="p-Value Threshold" VerticalAlignment="Top"/>
            <TextBox Margin="8,4" Grid.Row="4" TextWrapping="Wrap" Text="{Binding pValueThreshold, Mode=TwoWay}" VerticalAlignment="Center"/>
        </Grid>
    </Border>
</controls:ChildWindow>